package com.gomefinance.excelutils;

import com.gomefinance.ProtocolGenUtil;

import java.util.List;

public class IRowReaderImpl implements IRowReader{
	
	private int firstRow;
	
	public int getFirstRow() {
		return firstRow;
	}

	public void setFirstRow(int firstRow) {
		this.firstRow = firstRow;
	}


	@Override
	public void getRows(int sheetIndex, int curRow, List<String> rowlist, boolean isEndDoc) throws Exception {
		ProtocolGenUtil.genProtocol(rowlist);
		if(isEndDoc){
			ProtocolGenUtil.endRead();
		}
	}
}